<!DOCTYPE html>
<html lang="en">
<head>
  <!-- <meta charset="UTF-8"> -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <link rel="stylesheet" href="">
  <!-- 
    mouseover  会有冒泡事件  也就是当鼠标经过自身元素的时候会触发，在经过子元素的时候还会出触发
    mouseenter 只会经过自身盒子触发
   -->
   <button id="btn"> 发送</button>
   <label>你好呀
    <input type="text" id="mode">
   </label>
   <tr></tr>
   <label for="check">选择我</label>
   <input type="checkbox" id="check">
   <script>
    let btn = document.getElementById('btn')
    let worker = new Worker('../demo.js')
    btn.onclick = function() {
      worker.postMessage({status:0,value: 'hello'})
      console.log('Message posted to worker')
    }
   </script>
</body>
</html>